<template>
  <div>
    <!-- 路由出口 -->
    <router-view></router-view>
    <!-- tabbar -->
    <van-tabbar v-model="active" route v-if="$route.meta.showTab">
      <van-tabbar-item to="/home" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/question" icon="chat-o">问答</van-tabbar-item>
      <van-tabbar-item to="/movie" icon="video-o">视频</van-tabbar-item>
      <van-tabbar-item to="/my" icon="user-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data () {
    return {
      // tabbar v-model 对应的字段
      active: 0
    }
  }
}
</script>

<style></style>
